home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 18 code / PwrPC 601 µs Timer / Timer Readme next >
Encoding:
Text File  |  1994-03-10  |  2.1 KB  |  39 lines  |  [TEXT/MPS ]

  1. #
  2. # File:            Timer Readme
  3. #
  4. # Written by:    Dave Evans
  5. #
  6. # Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  7. #
  8. # I've provided the Timer.s assembly file and its resulting Timer.o object file to help
  9. # you profile time critical PowerPC code.  It provides three routines that read the
  10. # PowerPC 601 Real Time Clock (RTC) registers and return either the raw values or a
  11. # microsecond result.  I recommend that you read the microsecond value before and after
  12. # your critical code to estimate the speed of its execution.  The two registers, RTCU
  13. # and RTCL provide a second clock (RTCU) and a nanosecond clock (RTCL).  Please refer
  14. # to the PowerPC 601 RISC Microprocessor User's Manual for a further discussion of
  15. # these registers and how to effectively use them.
  16. #
  17. # Thanks go to Mike Neil for designing and implementing this library, and for allowing 
  18. # me to release it for your use.  Mike's a really sharp guy in Developer Technical 
  19. # Support and a pro at profiling PowerPC code.
  20. #
  21. # This library will only operate on a PowerPC 601 processor.  No future processors,
  22. # nor Macintosh products based on those future processors, will successfully
  23. # execute this Timer code.  But you will find it useful for profiling your code
  24. # on the PowerPC 601 processor.
  25. #
  26. # DO NOT USE THIS LIBRARY IN YOUR SHIPPING PRODUCTS.  We are providing it to you only
  27. # for development purposes.  You are not free to release this code.  You may not 
  28. # redistribute it in your products.  If you need similar timing information in your
  29. # products use the public Microseconds routine described below.
  30. #
  31. # You may also call the routine Microseconds defined in the Macintosh on RISC SDK
  32. # in the Interface file Timer.h there.  This routine will provide Microsecond
  33. # timing on all Power Macintosh products, but when using it you should
  34. # call it a few times first to estimate the routines internal overhead.  It may have
  35. # different granularity and overhead on different PowerPC processors.  The routine
  36. # also may have a significantly lower granularity compared to the PowerPC 601
  37. # nanosecond register.  But you may use that routine in your shipping products.
  38. #
  39.